package com.gomore.opple.utils;

import com.gomore.opple.OppleApplication;

import java.util.Date;

public class BussinessUtil {
    /**
     * 生成唯一标识
     *
     * @return
     */
    public synchronized static String getId() {
        String deviceId = "";
        int r = (int) (Math.random() * (999999 - 100000 + 1) + 100000);
        deviceId = DeviceUtils.getDeviceId(OppleApplication.getInstance());
        return deviceId + DateUtil.formatDate(new Date(), "yyMMddHHmmssSSS") + r;
    }
}
